package com.ds.infrastructure.hyperspace.console.dao.dao;

import com.ds.infrastructure.hyperspace.console.dao.mapper.TbDeployActiveTaskMapper;
import com.ds.infrastructure.hyperspace.console.entity.page.TbPageWhere;
import com.ds.infrastructure.hyperspace.console.entity.table.TbDeployActiveTask;
import com.ds.infrastructure.hyperspace.console.entity.where.TbCustomWhere;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: yaozhendong
 * @create: 2019-10-23 17:54
 **/

@Repository
public class TbDeployActiveTaskDao {
    @Autowired
    TbDeployActiveTaskMapper tbDeployActiveTaskMapper;

    public TbDeployActiveTask selectByPrimaryKey(Long id) {
        return tbDeployActiveTaskMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TbDeployActiveTask record) {
        return tbDeployActiveTaskMapper.updateByPrimaryKeySelective(record);
    }

    public int insertSelective(TbDeployActiveTask record) {
        return tbDeployActiveTaskMapper.insertSelective(record);
    }

    public List<TbDeployActiveTask> selectListForPage(TbDeployActiveTask where, TbCustomWhere mapWhere, TbPageWhere pageWhere) {
        return tbDeployActiveTaskMapper.selectListForPage(where, mapWhere, pageWhere);
    }

    public int selectListForPageCount(TbDeployActiveTask where, TbCustomWhere mapWhere) {
        return tbDeployActiveTaskMapper.selectListForPageCount(where, mapWhere);
    }
}
